<?php 
namespace Admin\Model;
use Think\Model;
class CategoryModel extends Model{
	protected $_validate = array(
		array('name','require','添加失败:分类名不能为空！'),
		array('slug','require','添加失败:分类别名不能为空！'),
		array('slug','','添加失败:分类别名已经存在！',0,'unique',1), 
	);
}

 ?>